import Vue from 'vue';
import BlNotice from './notice';
const BlNoticeConstructor = Vue.extend(BlNotice);
const NoticeModel = (o)=>{
    const BlNoticeDom = new BlNoticeConstructor({
        el:document.createElement('div')
    });
    if (document.getElementById('notice-box')){
        const _BlNoticeDom = document.getElementById('notice-box');
        _BlNoticeDom.parentNode.removeChild(_BlNoticeDom);
    }
    BlNoticeDom.type = o.type;
    document.body.appendChild(BlNoticeDom.$el);
    
}
export default NoticeModel;
